package com.zxy.supplier_system.server.configuration

import org.springframework.boot.context.properties.ConfigurationProperties
import org.springframework.boot.context.properties.EnableConfigurationProperties
import org.springframework.boot.context.properties.bind.ConstructorBinding
import org.springframework.context.annotation.Configuration

@EnableConfigurationProperties(EmployeeProperties::class)
@Configuration
class EmployeeConfiguration


@ConfigurationProperties(prefix = "employee")
class EmployeeProperties @ConstructorBinding constructor(
    val adminList: List<AdminProperties>,
){
    class AdminProperties(
        val phoneNumber:String,
        val name:String
    )
}

